home *** CD-ROM | disk | FTP | other *** search
- Path: ciril.fr!usenet
- From: gross laurent <gross>
- Newsgroups: comp.lang.c,alt.msdos.programmer
- Subject: Re: Two strange C problems.
- Date: 8 Jan 1996 10:30:46 GMT
- Organization: CIRIL, Nancy, France
- Message-ID: <4cqrom$a63@arcturus.ciril.fr>
- References: <4cojb2$qog@lugb.latrobe.edu.au>
- NNTP-Posting-Host: nyquist.cran.u-nancy.fr
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.12 (X11; I; SunOS 4.1.1 sun4c)
- X-URL: news:4cojb2$qog@lugb.latrobe.edu.au
-
- For your first problem, try to FLUSH the buffers. Printf and Scanf and all I/O
- operations uses a buffer whitch is not automatically flushed when you exit of
- your program.
- For your second problem when you write "carac=15" then chr(carac) is the ASCII
- character of decimal value 15, ie the ASCII character 15. If you write
- carac=\15, then chr(carac) is the ASCII character Hex(15), ie the ASCII
- character 21.
-
-